package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateProduceCodeInfo;
import com.ethink.warehouse.api.request.MateProduceCodeAddRequest;
import com.ethink.warehouse.api.request.MateProduceCodeQueryRequest;
import com.ethink.warehouse.api.request.MateProduceCodeUpdateRequest;
import com.ethink.warehouse.api.response.MateProduceCodeAddResponse;
import com.ethink.warehouse.api.response.MateProduceCodeDeleteResponse;
import com.ethink.warehouse.api.response.MateProduceCodeUpdateResponse;
import java.util.List;

/**
 * 商品生产批次号 Service接口
 *
 * @author default
 * @date 2022-11-22
 */
public interface MateProduceCodeService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<MateProduceCodeInfo> queryMateProduceCode(MateProduceCodeQueryRequest request);

    /**
     * 查询详情
     *
     * @param mateProduceCodeId
     * @return
     */
    MateProduceCodeInfo getMateProduceCodeById(Long mateProduceCodeId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<MateProduceCodeInfo> listMateProduceCode(MateProduceCodeQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    MateProduceCodeAddResponse addMateProduceCode(MateProduceCodeAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    MateProduceCodeUpdateResponse updateMateProduceCode(MateProduceCodeUpdateRequest request);

    /**
     * 删除
     *
     * @param mateProduceCodeId
     * @return
     */
    MateProduceCodeDeleteResponse deleteMateProduceCode(Long mateProduceCodeId);

    List<MateProduceCodeInfo> skuAndProduceCodeUnionQuery(List<MateProduceCodeQueryRequest> requestList);
}